# -*- coding: utf-8 -*-
# ----------------------------------------------------------------------------
# $Id: tagged.py 134 2008-09-06 17:42:43Z semente $
# ----------------------------------------------------------------------------
#
#  Copyright (c) 2007, 2008 Guilherme Mesquita Gondim and contributors
#
#  This file is part of django-diario.
#
#  django-diario is free software under terms of the GNU General
#  Public License version 3 (GPLv3) as published by the Free Software
#  Foundation. See the file README for copying conditions.
#

from tagging.views import tagged_object_list
from diario.models import Entry

def tagged_entry_list(request, *args, **kwargs):
    """
    A thin wrapper around ``tagging.views.tagged_object_list``.
    """
    kwargs['queryset_or_model'] = Entry.published_on_site.all()
    return tagged_object_list(request, *args, **kwargs)
